<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

{dede:page pagesize="50"/}
<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>用户模型管理</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><span>用户模型管理</span></li></ul></span>
</div>
<!-- 搜索表单 -->
<ul class="uk-navbar-nav dede-card-navbar" uk-navbar >
<li style="margin-right: 6px;">
<button class="uk-button uk-button-default uk-button-small uk-flex-inline ">新建用户模型</button>
<div class="uk-navbar-dropdown " uk-dropdown="offset: 12;mode: click" style="width: 300px;">
<ul class="uk-nav uk-navbar-dropdown-nav" >
<li>
<form action="member_model_add.php?action=add" method="post" name="form1">
<input type="hidden" name="do" value="add"><fieldset id="dede-dropdown-margin" class="uk-fieldset">
<div class="uk-margin"><input class="uk-input uk-form-small uk-flex-inline uk-width-1-1" type="text" placeholder="ID" name="id" value="<?php echo $newid?>"/></div>
<div class="uk-margin"><input class="uk-input uk-form-small uk-flex-inline uk-width-1-1" type="text" placeholder="用户模型名称" name="name" value="用户模型<?php echo $newid;?>"/></div>
<div class="uk-margin"><input class="uk-input uk-form-small uk-flex-inline uk-width-1-1" type="text" placeholder="数据表" name="table" value="<?php echo $cfg_dbprefix; ?>member_<?php echo $newid; ?>"/></div>
<div class="uk-margin"><input class="uk-input uk-form-small uk-flex-inline uk-width-1-1" type="text" placeholder="模型描述" name="description"/></div>
<div class="uk-margin">启用状态：<label>
<input name="state" type="radio" value="1" class="uk-radio" checked /> 启用 &nbsp;
<input name="state" type="radio" value="0" class="uk-radio" /> 禁用</label></div>
<button type='submit' class="uk-button-primary uk-form-small uk-width-1-1" >添加</button>
</fieldset>
</form>
</li>
</ul>
</div>
</li>
</ul>
<!-- /搜索表单 -->
</div>
<table id="dede-table-toolbar" class="uk-table uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td>ID</td>
<td>模型名称</td>
<td>表名</td>
<td>用户数</td>
<td>启用状态</td>
<td>管理</td>
</tr>
</thead>
</table>
</div>
<!-- /列表头部 -->
<!-- 列表主题 -->
<div id="Table_Body_1X2V2U2V1W272D" class="uk-card uk-card-small uk-card-default" style="top: -51;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1">
<div class="uk-overflow-auto">
<table class="uk-table uk-table-hover uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td>ID</td>
<td>模型名称</td>
<td>表名</td>
<td>用户数</td>
<td>启用状态</td>
<td>管理</td>
</tr>
</thead>
<tbody>
<!-- 内容列表 -->
{dede:datalist}
<tr>
<td>{dede:field.id/}</td>
<td><a href="member_main.php?mtype={dede:field.name/}" title="{dede:field.description/}"><u>{dede:field.name/}</u></a>{dede:if field.issystem==1 }<font color=red>[*]</font>{/dede:if}</td>
<td>{dede:field.table/}</td>
<td>{dede:field.table function='GetTotalMember(@me)'/}</td>
<td> {dede:if field.state==0 } <font color=red>[×]Off</font> {else} <font color=green>[√]On</font> {/dede:if} </td>
<td><a href='member_model_edit.php?id={dede:field.id/}&dopost=edit'>编辑</a> | <a href='member_model_edit.php?id={dede:field.id/}&dopost=copy'>复制</a> | <a href='member_model_edit.php?id={dede:field.id/}&dopost=disabled'>{dede:if field.state==0 }启用{else}禁用{/dede:if}</a> | <a href='member_model_edit.php?id={dede:field.id/}&dopost=delete'>删除</a></td>
</tr>
{/dede:datalist}
<!-- /内容列表 -->
</tbody><!-- 分页 -->
<thead>
<tr>
<td height="36" colspan="10" align="center">
{dede:pagelist listsize=6/}
</td>
</tr>
</thead>
<!-- /分页 -->
</table>
</div>
</div>
</div>
</div>
<!-- /列表主题 -->
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script><!-- / JS FILES -->
</body>
</html>
